package com.cmes.mes.audit.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.cmes.core.annotation.Dict;
import com.cmes.jdbc.entity.LogicEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

import java.time.LocalDateTime;

/**
 * 审核流程日志
 *
 * @author Bruce.Gong
 * @since 1.0.0-SNAPSHOT
 */
@EqualsAndHashCode(callSuper = true)
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
@Data
public abstract class AuditModuleEntity extends LogicEntity implements AuditModule {

    @TableId
    private Long id;
    @Dict(code = "audit_status")
    private Integer auditStatus;
    @Dict(code = "enable_status")
    private Integer status;
    private String auditBy;
    private LocalDateTime auditTime;

}
